package com.archerdu.apply.model;

import java.util.Date;
import java.util.Set;

import com.archerdu.base.dao.BaseEntity;

/**
 * User entity. @author MyEclipse Persistence Tools
 */

public class User implements BaseEntity<Integer> {

    private static final long serialVersionUID = -5902303451810202900L;
    private Integer           id;
    private String            loginname;
    private String            pwd;
    private String            repwd;
    private String            email;
    private String            pwdQuestion;
    private String            pwdAnswer;
    private String            userType;
    /** 会员类型 */
    private String            flag;
    /** 使用标识 */
    private Integer           useFlag;
    private String            phone;
    private String            extention;
    private String            mobile;
    private Date              regtime;
    private Date              lastloginTime;
    private Date              lastupdateTime;
    private String            regIp;
    private String            lastloginIp;
    private String            activeCode;
    private Set<Role>         roles;

    // Constructors

    /** default constructor */
    public User() {
    }

    /** minimal constructor */
    public User(String loginname, String pwd, String email, Date regtime) {
        this.loginname = loginname;
        this.pwd = pwd;
        this.email = email;
        this.regtime = regtime;
    }

    /** full constructor */
    public User(String loginname, String pwd, String email, String pwdQuestion, String pwdAnswer, String userType,
            String flag, String phone, String extention, String mobile, Date regtime, Date lastloginTime,
            Date lastupdateTime, String regIp, String lastloginIp, String activeCode) {
        this.loginname = loginname;
        this.pwd = pwd;
        this.email = email;
        this.pwdQuestion = pwdQuestion;
        this.pwdAnswer = pwdAnswer;
        this.userType = userType;
        this.flag = flag;
        this.phone = phone;
        this.extention = extention;
        this.mobile = mobile;
        this.regtime = regtime;
        this.lastloginTime = lastloginTime;
        this.lastupdateTime = lastupdateTime;
        this.regIp = regIp;
        this.lastloginIp = lastloginIp;
        this.activeCode = activeCode;
    }

    // Property accessors

    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLoginname() {
        return this.loginname;
    }

    public void setLoginname(String loginname) {
        this.loginname = loginname;
    }

    public String getPwd() {
        return this.pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getEmail() {
        return this.email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPwdQuestion() {
        return this.pwdQuestion;
    }

    public void setPwdQuestion(String pwdQuestion) {
        this.pwdQuestion = pwdQuestion;
    }

    public String getPwdAnswer() {
        return this.pwdAnswer;
    }

    public void setPwdAnswer(String pwdAnswer) {
        this.pwdAnswer = pwdAnswer;
    }

    public String getUserType() {
        return this.userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public String getFlag() {
        return this.flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getPhone() {
        return this.phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getExtention() {
        return this.extention;
    }

    public void setExtention(String extention) {
        this.extention = extention;
    }

    public String getMobile() {
        return this.mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Date getRegtime() {
        return this.regtime;
    }

    public void setRegtime(Date regtime) {
        this.regtime = regtime;
    }

    public Date getLastloginTime() {
        return this.lastloginTime;
    }

    public void setLastloginTime(Date lastloginTime) {
        this.lastloginTime = lastloginTime;
    }

    public Date getLastupdateTime() {
        return this.lastupdateTime;
    }

    public void setLastupdateTime(Date lastupdateTime) {
        this.lastupdateTime = lastupdateTime;
    }

    public String getRegIp() {
        return this.regIp;
    }

    public void setRegIp(String regIp) {
        this.regIp = regIp;
    }

    public String getLastloginIp() {
        return this.lastloginIp;
    }

    public void setLastloginIp(String lastloginIp) {
        this.lastloginIp = lastloginIp;
    }

    public String getActiveCode() {
        return this.activeCode;
    }

    public void setActiveCode(String activeCode) {
        this.activeCode = activeCode;
    }

    public Set<Role> getRoles() {
        return roles;
    }

    public void setRoles(Set<Role> roles) {
        this.roles = roles;
    }

    public Integer getUseFlag() {
        return useFlag;
    }

    public void setUseFlag(Integer useFlag) {
        this.useFlag = useFlag;
    }

    public String getRepwd() {
        return repwd;
    }

    public void setRepwd(String repwd) {
        this.repwd = repwd;
    }

}
